{% extends "NarbarIndex.html" %}

{% load static %}

{% block title %}模拟账户{% endblock %}

{% block body %}
    <div class="row">
        <div class="col-lg-6">
            {% if ltAccount %}
                <table class="table">
                <thead>
                    <tr>
                        <td width="15%">ID</td>
                        <td width="25%">账户名称</td>
                        <td width="30%">可用金额</td>
                        <td width="30%">不可用金额</td>
                    </tr>
                </thead>
                {% for acc in ltAccount %}
                    <tr>
                        <td>{{ acc.id }}</td>
                        <td><a href="{% url 'Account:position' pk=acc.id %}">{{ acc.name }}</a></td>
                        <td>￥{{ acc.money }}</td>
                        <td>￥{{ acc.no }}</td>
                    </tr>
                {% endfor %}
                </table>
            {% else %}
                <h1>没有相关数据</h1>
            {% endif %}
        </div>
        <div class="col-lg-6"></div>
    </div>

{% endblock %}

{% block myjs %}

{% endblock %}